package StructuralPatterns.Proxy.JDKProxy;

import StructuralPatterns.Proxy.StaticProxy.IUserDao;
import StructuralPatterns.Proxy.StaticProxy.UserDao;

public class Test {

  public static void main(String[] args) {

    UserDao userDao = new UserDao();

    IUserDao proxyInstance = (IUserDao) new ProxyFactory(userDao).getProxyInstance();
    proxyInstance.save();
  }
}
